[PATCH] freetype: Handle failing glyph rendering
authorDavid Edmundson <davidedmundson@kde.org>
Wed, 25 Mar 2026 15:32:10 +0000 (15:32 +0000)
committerPatrick Franz <deltaone@debian.org>
Sun, 9 Aug 2026 10:38:49 +0000 (12:38 +0200)
commit76343567e2e84975b06a1ba71d5a0a79a6a1d778
tree9c77e06972c5d6050d9e6f68548e0cf2e3ad112f
parent1d9ad0a15f2632b30c464639917f74887a816dfa
[PATCH] freetype: Handle failing glyph rendering

When FT_Render_Glpyh fails the slot returns a bitmap containing a valid
width and height but a null buffer.

When we eventually memcpy this buffer we will crash. Existing error
handling in this method returns null on errors.

Pick-to: 6.10 6.8
Fixes: QTBUG-145310
Change-Id: I4737ab4d769b52f42bd1ef9037c8b9fd681a4ae8
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
(cherry picked from commit 1b4f4b1797bc7db3eea6ef83a34df61d7bf78e17)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Gbp-Pq: Name upstream_freetype-handle-failing-glyph-rendering.patch
src/gui/text/freetype/qfontengine_ft.cpp